package com.atguigu.web.controller;


import com.atguigu.web.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
	@Autowired
	HelloService helloService;

	public HelloController(){
		System.out.println("HelloController.....");
	}

	@GetMapping("/hello")
	public String sayHello() {
		return helloService.say("mvc");
	}

}
